﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Appetite.Domain.Models
{
    public abstract class Entity
    {
        protected Entity()
        {
            Id = default(Guid);
            CreationDate = DateTime.Now;
            ModificationDate = DateTime.Now;
        }

        [Key]
        public Guid Id { get; set; }

        public DateTime CreationDate { get; set; }
        public DateTime ModificationDate { get; set; }
    }
}